// Create a directory with the permission level (optional) <?php mkdir("/path/to/my/dir", 0700); ?>